package org.cvcsc.weproject.domain;

import jakarta.persistence.Embeddable;
import io.swagger.v3.oas.annotations.media.Schema;

@Embeddable
public class CourseScheduleTime {
    public CourseScheduleTime(int week, int day, int startPeriod, int endPeriod) {
        this.week = week;
        this.day = day;
        this.startPeriod = startPeriod;
        this.endPeriod = endPeriod;
    }

    @Schema(description = "课程所在的周数", example = "1")
    private int week;

    @Schema(description = "课程所在的星期几（整数形式，1代表周一，6代表周六，7代表周日）", example = "1")
    private int day;

    @Schema(description = "课程的开始节次", example = "3")
    private int startPeriod;

    @Schema(description = "课程的结束节次", example = "4")
    private int endPeriod;

    public int getWeek() {
        return week;
    }

    public void setWeek(int week) {
        this.week = week;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public int getStartPeriod() {
        return startPeriod;
    }

    public void setStartPeriod(int startPeriod) {
        this.startPeriod = startPeriod;
    }

    public int getEndPeriod() {
        return endPeriod;
    }

    public void setEndPeriod(int endPeriod) {
        this.endPeriod = endPeriod;
    }

    // 添加私有无参数构造方法
    private CourseScheduleTime() {
        // 防止外部直接实例化
    }
}